<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-Transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<head>
<title>IGNORED</title>
</head>
<body>
	<ui:composition>
		<h:form>
			<f:event listener="#{messageController.initNews}"
				type="preRenderComponent"></f:event>
			<p:panel header="#{msgs.farmerBlog}" style="font-size:0.7em">
		
				<p:dataGrid var="news" value="#{messageModel.list}" columns="1"
					rows="4" paginator="true" effect="true">
					<p:column>
						
						<h:panelGrid border="0" columns="1">
							<h:panelGrid columns="1" cellspacing="5px">
								<p:commandLink value="#{news.title}" 
									 style="font-weight:bold;">
								</p:commandLink>
								<p:imageSwitch effect="shuffle">
									<ui:repeat value="#{news.pictures}" var="image">
										<h:graphicImage width="100" height="75" value="#{image.fullFileName}" />
									</ui:repeat>
								</p:imageSwitch>
							</h:panelGrid>
						</h:panelGrid>
						
					</p:column>
				</p:dataGrid>

			</p:panel>
		</h:form>

	</ui:composition>
</body>
</html>